package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.Commission;
import com.stlm2.dems.dao.CommissionDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("commissionDao")
public class CommissionDaoImpl extends BaseDaoImpl<Commission> implements CommissionDao {

    @Override
    public List<Commission> getbyCode(String code) {
        return selectList("getbyCode",code);
    }


    @Override
    public Integer countNum(Commission commission) {
        return (Integer) _selectOne("countNum",commission);
    }
}